﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Machine.Specifications;
using SportsStore.DataBaseInfrastructure;

namespace SportsStore.DatabaseInfraStructure.Test.Common
{
   

    public class When_I_Dont_Send_The_url_It_Should_Throw_A_Argument_Exception
    {
        static IDataBase ConnectDatabase;
        static Exception exception;
        Establish Context = () =>
        {
            exception = Catch.Exception(() =>
                 {
                     ConnectDatabase = new RavenDataBaseConnection(string.Empty);
                 });
        };

        It Should_Throw_The_Argument_Exception = () =>
        {
            exception.ShouldBeOfType<ArgumentException>();

        };
    }


}
